package com.sumainfor.wx.tenant.controller.secretary;

import com.sumainfor.common.util.JsonResult;
import com.sumainfor.wx.tenant.feign.Zfeign.ZpcGmioFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

/**
 *临时账单、查询唤起微信支付的订单的参数、上传续签合同的首月水电押金的支付凭证
 */
@RestController
@RequestMapping("/secretary/SeWxTemporary")
public class SeWxTemporaryController implements Serializable {
    @Autowired
    private ZpcGmioFeign zpcGmioFeign;
    /**
     * 查询水表录入记录的列表
     */
    @GetMapping("/getHouTemporaryList")
    public JsonResult getHouTemporaryList(@RequestParam Map<String,Object>params){
        return zpcGmioFeign.getHouTemporaryList(params);
    }
    /**
     * 租客端续签的时候查询续签合同的信息（生成预付订单）
     */
    @PostMapping("/getRenUnifiedorder")
    public JsonResult getRenUnifiedorder(@RequestBody Map<String,Object>params){
        return zpcGmioFeign.getRenUnifiedorder(params);
    }
    /**
     * 租客端续签的时候查询续签合同的信息（查询维修支付订单的信息）
     */
    @PostMapping("/getRenOrderQuery")
    public JsonResult getRenOrderQuery(@RequestBody Map<String,Object>params){
        return zpcGmioFeign.getRenOrderQuery(params);
    }
    /**
     * 租客端续签合同的时候上传水电押金的支付凭证
     */
    @PostMapping("/addSeBillPay")
    public JsonResult addSeBillPay(@RequestBody Map<String,Object>params){
        return zpcGmioFeign.addSeBillPay(params);
    }
    /**
     * 租客端续签合同的时候上传水电押金的支付凭证
     */
    @PostMapping("/getDelayUnifiedorder")
    public JsonResult getDelayUnifiedorder(@RequestBody Map<String,Object>params){
        return zpcGmioFeign.getDelayUnifiedorder(params);
    }
    /**
     *租客端延期退(查询微信订单的支付状态)
     */
    @PostMapping("/getDelayOrderQuery")
    public JsonResult getDelayOrderQuery(@RequestBody Map<String,Object>params){
        return zpcGmioFeign.getDelayOrderQuery(params);
    }
    /**
     * 租客端其他账单微信支付（生成预付订单）
     */
    @PostMapping("/getOtherUnifiedorder")
    public JsonResult getOtherUnifiedorder(@RequestBody Map<String,Object>params){
        return zpcGmioFeign.getOtherUnifiedorder(params);
    }
    /**
     * 租客端延期退(查询微信订单的支付状态)
     */
    @PostMapping("/getOtherOrderQuery")
    public JsonResult getOtherOrderQuery(@RequestBody Map<String,Object>params){
        return zpcGmioFeign.getOtherOrderQuery(params);
    }
    /**
     * 智能设备充值被驳回后重新上传支付凭证
     */
    @PostMapping("/updateBillPayStatus")
    public JsonResult updateBillPayStatus(@RequestBody Map<String,Object>params){
        return zpcGmioFeign.updateBillPayStatus(params);
    }
    /**
     * 智能设备充值被驳回取消账单
     */
    @PostMapping("/updateBillDiscard")
    public JsonResult updateBillDiscard(@RequestBody Map<String,Object>params){
        return zpcGmioFeign.updateBillDiscard(params);
    }
    /**
     * 智能设备充值被驳回取消账单
     */
    @GetMapping("/getPaymePrice")
    public JsonResult getPaymePrice(@RequestParam Map<String,Object>params){
        return zpcGmioFeign.getPaymePrice(params);
    }

}
